package com.gxuwz.ssy.service.impl;

import com.gxuwz.ssy.model.Role;
import com.gxuwz.ssy.mapper.RoleMapper;
import com.gxuwz.ssy.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 师善滢
 * @since 2022-04-06
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    public List<Role> getRoleListBy(Integer userId){
        query().eq("id","1").one();


        return query().in("id",baseMapper.getUserRoles(userId)).list();



    }
}
